import Vue from "vue";
import {
  Button,
  Tabbar,
  TabbarItem,
  Divider,
  CellGroup,
  Cell,
  Field,
  Toast,
  Image,
  Swipe,
  SwipeItem,
  Loading,
  NavBar,
  Icon,
  Tab,
  Tabs,
  Form,
  List,
  ActionSheet,
  Popup,
  Area,
  Empty,
  DatetimePicker,
  Picker,
  Checkbox,
  CheckboxGroup,
  Radio,
  RadioGroup,
  Calendar,
  Search,
  Slider,
  Uploader,
  ImagePreview,
  Dialog,
  PullRefresh,
  Overlay,
  Rate
} from "vant";

Vue.use(Button)
  .use(Field)
  .use(Swipe)
  .use(SwipeItem)
  .use(Loading)
  .use(Image)
  .use(Cell)
  .use(Toast)
  .use(CellGroup)
  .use(Divider)
  .use(Tabbar)
  .use(TabbarItem)
  .use(NavBar)
  .use(Icon)
  .use(Tab)
  .use(Tabs)
  .use(Form)
  .use(List)
  .use(ActionSheet)
  .use(Popup)
  .use(Area)
  .use(Empty)
  .use(DatetimePicker)
  .use(Picker)
  .use(Checkbox)
  .use(CheckboxGroup)
  .use(Radio)
  .use(RadioGroup)
  .use(Calendar)
  .use(Search)
  .use(Slider)
  .use(Uploader)
  .use(ImagePreview)
  .use(Dialog)
  .use(PullRefresh)
  .use(Overlay)
  .use(Rate)
Vue.prototype.$toast = Toast;
Vue.prototype.$imagePreview = ImagePreview;
Vue.prototype.$dialog = Dialog;
